<%-------------------------------------------------------------------
 * 页面名称：batchPay_2.jsp
 * 功能描述：批量支付
 * Action: 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='<%=path%>/js/vnv/commonForManage.js'></script>
<script language="JavaScript" type="text/JavaScript">
function dosubmit(btnObj){
	document.forms[0].submit();
	btnObj.disabled = true;
}
function doback(){
	document.forms[0].step.value = "0";
	document.forms[0].target = "_self";
	document.forms[0].submit();
}
function peerAccountView(){
 	agiledata.getUserInternal(peerAccountPopup);
}
function peerAccountPopup(data){
  	if(data) {
  		var subAccountId = document.forms[0].subAccountId.value;
	 	openLayer("<%=path%>/page/transaction/viewBatchPeerAccount.do?subAccountId="+subAccountId);
	} else {
		location.href="<%=path%>/page/util/session_invalid.jsp";
	}
}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				批量支付
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="0" class="blueborder">
					<tr>
						<td colspan="2" align="right" height="25">
						<table width="100%" border="0" align="center" cellpadding="7"
										cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
										<tr>
											<td bgcolor="#fffdf5">
												<table width="100%" border="0" cellpadding="3"
													cellspacing="0">
													<tr>
														<td width="3%" height="25" valign="top"
															style="border-bottom:1px solid #ccc;"></td>
														<td width="97%" align="left" class="red12b"
															style="border-bottom:1px solid #ccc;">
															特别提醒
														</td>
													</tr>
											<tr>
												<td valign="top">
													&nbsp;
												</td>
												<td align="left" class="font_gray">
													请确认您的付款信息，正确请输入支付密码，并点击
													<span class="text9green">确定付款</span>，需要修改请返回上一步！
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<html:form action="batchPay" method="post">
						<html:hidden property="step" />
						<tr>
							<td width="50%" align="right" height="25">
								付款子账户：
							</td>
							<td width="50%" class="fontgraydrop14" height="25">
								<bean:write name="subAccount" property="accountName" />
								<html:hidden property="subAccountId" />
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								付款子账户当前余额：
							</td>
							<td class="fontgraydrop14" height="25">
								<span id="debitSubAccountBalanceSpan" class="orangefont14b"><ad:FormatPrase>
										<bean:write name="subAccount"
											property="accountBalance.balance" />
									</ad:FormatPrase>
								</span> 元
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								收款方账户汇总：
							</td>
							<td class="fontgraydrop14" height="25">
								<logic:present name="batchPeerAccount">
			共 <strong><span id="count" style="color:#FF0000;"><bean:write
												name="batchPeerAccount" property="count" />
									</span>
									</strong> 笔
			<span id="type"><logic:equal name="batchPeerAccount"
											property="innerBatchPeerAccount" value="true">支付账户</logic:equal>
										<logic:equal name="batchPeerAccount"
											property="bankBatchPeerAccount" value="true">银行账户</logic:equal>
									</span>
			，总计 <strong><span id="total" style="color:#FF0000;"><ad:FormatPrase>
												<bean:write name="batchPeerAccount"
													property="totalAmountWithFee" />
											</ad:FormatPrase>
									</span>
									</strong> 元
		  </logic:present>
								<logic:notPresent name="batchPeerAccount">
			共 <strong><span id="count" style="color:#FF0000;">0</span>
									</strong> 笔
			<span id="type"></span>
			，总计 <strong><span id="total" style="color:#FF0000;">0.00</span>
									</strong> 元
		  </logic:notPresent>
								&nbsp;&nbsp;
								<img src="<%=path%>/images/icon_email.gif" width="13"
									height="10" border="0" style="cursor:hand"
									title="请点击此按钮，查看交易对方及金额" onclick="peerAccountView();" />
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								资金用途：
							</td>
							<td class="fontgraydrop14" height="25">
								<html:hidden property="purpose" write="true" />
							</td>
						</tr>
						<tr>
							<td align="right" height="25">
								备注：
							</td>
							<td class="fontgraydrop14" height="25">
								<html:hidden property="remark" write="true" />
							</td>
						</tr>
					</html:form>
					<tr>
						<td colspan="2" align="right" height="25">
							&nbsp;
						</td>
					</tr>
				</table>
				<table width="100%" height="55" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td align="center">
							<input name="button222" type="button" class="button_style"
								onclick="doback();" value="上一步" />
							<input name="button22" type="button" class="button_style"
								onclick="dosubmit(this);" value="确 定" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="<%=path%>/js/layer.js"></script>
